package cn.ex;

public class Demo {
    public static void main(String[] args) {
        Db db = new DbMySql();
        db.connect();

        Db d2 = new DbOracle(){
            @Override
            int save() {
                return 0;
            }
        };
        d2.connect();
    }
}
